<?php
if (!defined('FosfoaSystem')) { exit(1);}
class countriesModel extends spModel
{
	var $pk = "countries_id"; // 每个唯一的标志，可以称为主键
	var $table = "countries"; // 数据表的名称
    
    
    function Detail($countries_id){
		$condition = array('countries_id'=>$countries_id);
		$arr = $this->find($condition);
		return $arr;
	}
    /**
     * 返回国家数据集
     */
    function Countries_List()
    {
        $fields='countries_id,countries_name,countries_iso_code_2,countries_iso_code_3';
        return $this->findAll(null, null, $fields);
    }
    
}